@media (max-width: 600px) {
  .logo-container {
    margin-bottom: 0; /* enlève l’espace sous le logo */
    padding-bottom: 0;
  }

  .portrait-logo {
    max-width: 90%;
    margin: 0 auto;   /* centre sans espace vertical */
    display: block;
  }

  .icon-menu {
    margin-top: 0; /* colle le menu au logo */
    padding-top: 0;
  }
}



@media (max-width: 768px) {
  .gallery {
    column-count: 1;
    padding: 0 10px;
  }
}p {
  @import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

font-family: 'Fredoka One', cursive;

}



/* ðŸŽ¨ Variables globales */
:root {
  --color-1: #214e74;
}

/*  Base */
html, body {
  height: 100%;
  font-family: "BD Cartoon Shout", Serif;
  color: #FFF;
  font-weight: 600;
  background-image: url("Fond Craft.png");
  background-repeat: repeat;        /* répète le motif */
  background-size: auto;            /* conserve la taille originale */
  background-position: top left;    /* position de départ */
  background-attachment: fixed;     /* empêche le décalage lors du scroll */
  padding: 2em;
  margin: 0;
}

/*  Images gÃ©nÃ©riques */
.img {
  width: 150px;
  height: 150px;
}

/* Portrait Logo - Responsive */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
  max-width: 100%;
  width: auto;
}

.logo-container img {
  max-width: 100%;
  height: auto;
}

.portrait-logo {
  max-width: 10px; /* Ajuste selon ta préférence */
  height: auto;
  margin-bottom: 0; /* Évite l’espace sous l’image */
  padding: 0;
  display: block;
}

.icon-menu {
  width: 100%;
  max-width: 600px; /* Largeur max sur les grands écrans */
  background-image: url("Portrait Logo 2.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 2px;

  font-weight: 600;

  margin: 0 auto; /* Centré horizontalement */
  padding: 0;
  img:hover {
  transform: scale(1.30);
}
	
}




@media (max-width: 600px) {
  .portrait-logo {
    max-width: 90%;
    margin-top: 3em;
  }
}


/* ðŸ”² Grille responsive */
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  grid-auto-rows: 80px;
  gap: 5px;
  width: 70%;
  max-width: 500px;
  margin: 10px auto 1em;
  background-color: var(--color-1);
  opacity: 0.93;
}

/* ðŸ·ï¸ Titres */
.h1 {
  width: 500px;
  margin: 0 auto 1em;
  padding: 0.5em;
  text-align: center;
  border-bottom: medium solid #fff;
  font-size: 8px;
  background-color: var(--color-1);
  opacity: 0.93;
}

h2 {
  margin: 0 0 1em;
  padding: 0.5em;
  text-align: center;
  font-size: 10px;
}

/* Par défaut : BD Cartoon Shout */
body {
  font-family: "BD Cartoon Shout", sans-serif;
}

/* Pavés de texte en Arial */
.portrait-text p,
.portrait-text div,
.portrait-text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;  /* pour alléger le rendu */
  color: #fff;          /* tu peux garder la couleur si besoin */
}

.portrait-text p {
  line-height: 1.2; /* ajuste selon le besoin */
}

/* ðŸ–¼ï¸ Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 500px;
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--color-1);
  opacity: 0.83;
  text-align: center;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: 0.2s ease-in-out;
}

/* ðŸ–¼ï¸ Galerie alternative */
#gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

/* ðŸ“± Responsive */
@media (max-width: 800px) {
  #gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #gallery {
    grid-template-columns: 1fr;
  }
  #gallery img {
    max-height: 60vh;
    margin-top: 0.5em;
  }
  .gallery {
    grid-template-columns: 1fr;
    margin-top: 4em;
  }
}

/* âœï¸ Police perso */
@font-face {
  font-family: "BD Cartoon Shout";
  src: url("BD_Cartoon_Shout.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body, h1, h2, p, a, .gallery, .aunis-title {
  font-family: "BD Cartoon Shout", sans-serif;
}

h3 {
  font-family: Fredoka One, serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: white;
  font-weight: normal;
}


.h1 {
	width:500px;
	margin:0 0 em 0;
	padding:0;
	text-align: center;
	font-size:10px;
	background-color: #214e74;opacity: 0.83;	
}
	
h2 {
	margin:0 0 1em 0;
	padding:50;
	text-align: center;
	font-size:10px;
}

/* ðŸ”² Grille responsive */
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  grid-auto-rows: 80px;
  gap: 5px;
  width: 70%;
  max-width: 500px;
  margin: 10px auto 1em;
  background-color: var(--color-1);
  opacity: 0.93;
}


.portrait-text {
  max-width: 600px;
  margin: 2em auto;
  font-family: Fredoka One, sans-serif;
  font-weight: normal;
  line-height: 1.5;
  color: #fff;
}

.portrait-text .portrait-img {
  float: left;
  width: 180px;      /* taille du portrait */
  height: 180px;
  margin: 0 1em 1em 0;
  border-radius: 50%;  /* cercle */
  shape-outside: circle(); /* texte épouse le cercle */
  -webkit-shape-outside: circle(); /* Safari/Chrome */
  clip-path: circle(); /* masque image en cercle */
  object-fit: cover;   /* image bien centrée */
}

.hover-portrait {
  transition: transform 0.3s ease-in-out;
  border-radius: 50%; /* Optionnel, pour un effet rond */
}

.hover-portrait:hover {
  transform: scale(1.30); /* Agrandit légèrement */
}

/* Formulaire commentaires */
.comment-box {
  max-width: 600px;
  margin: 2em auto;
  padding: 1em 1.5em;
  background: rgba(33, 78, 116, 0.85);
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-weight: normal;
  color: #fff;
}

.comment-box h3 {
  text-align: center;
  color: #fff;
  font-family: "BD Cartoon Shout", sans-serif;
}

.comment-box label {
  display: block;
  margin: 1em 0 0.3em;
  font-weight: bold;
  font-size: 0.95rem;
}

.comment-box input[type="text"],
.comment-box input[type="email"],
.comment-box textarea {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
}

.comment-box textarea {
  resize: vertical;
}

.comment-box input[type="submit"] {
  display: block;
  margin: 1.5em auto 0;
  padding: 0.7em 1.5em;
  background: #17657D;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.comment-box input[type="submit"]:hover {
  background: #2182a0;
}

.portrait-img {
  float: left;
  width: 180px;
  height: auto;
  margin: 0 20px 20px 0;
  border-radius: 8px;
}


.gallery {
	width:500px;
	min-width: 500px;	
	max-width: 500px;
	margin:0 auto;	
	column-count: 2;
	column-fill:auto
	column-gap: 0px;
	background-color: #214e74;opacity: 0.83;	
	text-align: center;
}

.gallery img {
	display:block
	width:50%;
	height:60;
	margin: 0 0px 0;
	border-radius: 10px;
}


.gallery img {
	display: block;
	width:100%;
	height: auto;
	margin: 0 0 10px 0;
	border-radius: 4px;
	transition:0.2s ease-in-out;

.gallery (max-width:600px) {
	transform: scaleY(0.9);	
	transition: transform 2s ease-in-out;
}

#gallery img {
width: 25%	
height: 300px;
object-fit: cover;
margin-top: 8px;
padding: 0 4px;
@media(max-width:800px){#gallery img {widht:50%}};	
	}

/* CSS pour rendre la map responsive */
.map-container {
  position: relative;
  width: 100%;          /* prend toute la largeur du parent */
  max-width: 600px;     /* largeur max */
  padding-bottom: 56.25%; /* ratio 16:9 pour la hauteur */
  margin: 0 auto;       /* centre horizontalement */
  height: 0;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
	
	@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 10px;
  }
}